package Server;

import java.net.URL;
import java.util.ResourceBundle;

import javafx.event.ActionEvent;
import javafx.fxml.FXML;


public class QuizController {

    @FXML
    private ResourceBundle resources;

    @FXML
    private URL location;
    
    private NetworkHandler network;


    @FXML
    void answerA(ActionEvent event) {
    	network.sendMessage("a");
    }

    @FXML
    void answerB(ActionEvent event) {
    	network.sendMessage("b");
    }

    @FXML
    void answerC(ActionEvent event) {
    	network.sendMessage("c");
    }

    @FXML
    void answerD(ActionEvent event) {
    	network.sendMessage("d");
    }

    @FXML
    void initialize() {


    }
    
    public void setNetwork(NetworkHandler network){
    	this.network = network;
    }

}
